/**
 * 报表设计公司(2011)
 */
package net.abbp.report.designer.action.file;

import java.awt.event.ActionEvent;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.PrintWriter;

import net.abbp.report.context.ReportContext;
import net.abbp.report.designer.IDesigner;
import net.abbp.report.designer.context.DesignerContext;
import net.abbp.report.model.ReportModel;
import net.abbp.report.view.GridView;
import net.abbp.swing.util.ImageUtils;
import com.reportgear.designer.action.ReportAction;

/**
 * 保存报表
 * 
 * @version 1.0 2011-3-24
 * @author <a herf="lexloo@gmail.com">lexloo</a>
 * @since ANNCSR 2.0
 */
public class SaveReportAction extends ReportAction {

    public SaveReportAction() {
        setName("保存报表");
        setSmallIcon(ImageUtils.readIcon("file/save.png"));
    }

    public void actionPerformed(ActionEvent e) {
        IDesigner designer = DesignerContext.INSTANCE.getDesigner();

        designer.saveModel();
    }

}
